<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<shield:permssion type="button">
<form action="${ctxPathA}/tool/shieldjsdemo/addOrUpdate" method="post" autocomplete="off" class="show-info">
	<shield:token/>	
    <input id="id" name="id" type="hidden" maxlength="100" value="${model.id }">
    <table class="tab-show">
    	<colgroup>
    		<col width="20%">
    		<col width="">
    	</colgroup>
        <tr>
	    	<th>
            	<label><font color="red">*</font>插件关键字：</label>
        	</th>
         	<td colspan="3"><input type="text" name="pluginKey" value="${model.pluginKey}"></td>
		</tr>
        <tr>
	    	<th>
            	<label><font color="red">*</font>简介：</label>
        	</th>
         	<td colspan="3">
         		<textarea id="description" name="description" style="width:98%;height:100px;" maxlength="400"><c:out value="${model.description }"/></textarea>
         	</td>
		</tr>
        <tr>
	    	<th>
            	<label><font color="red">*</font>示例代码：</label>
        	</th>
         	<td colspan="3">
         		<textarea id="demo" name="demo" class="ueditor" style="width:100%;height:300px;" maxlength="400"><c:out value="${model.demo }"/></textarea>
         	</td>
		</tr>
        <tr>
	    	<th>
            	<label><font color="red">*</font>支持版本：</label>
        	</th>
         	<td><input type="text" name="version" value="${model.version}"></td>
         	<th>
            	<label><font color="red">*</font>所属模块：</label>
        	</th>
         	<td><input type="text" name="modules" value="${model.modules}"></td>
		</tr>
        <tr>
	    	<th>
            	<label>状态：</label>
        	</th>
         	<td colspan="3"><shield:switchOput data="正常|-1=删除" value="${model.state }"></shield:switchOput></td>
		</tr>
    </table>
    <div class="taCenter">
		<input class="button" type="submit" value="提交"/>
    	<input class="button default" type="reset" value="重置"/>
    </div>
</form>
</shield:permssion>